package com.kaifamiao.quant;


import com.ruoyi.common.utils.security.ShiroUtils;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.system.user.domain.User;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.web.controller.BaseController;

@RestController
public class Demo  extends BaseController {
    @RequestMapping("/demo")
//    @RequiresRoles(value = { "admin", "一般查询用户" }, logical = Logical.OR)
    public String index() {
//        User currentUser = ShiroUtils.getSysUser();
//        String userName = currentUser.getUserName();
        String str = "<h1>哈喽！！！</h1>";
        str +="<hr>";
        str +="com.kaifamiao.quant.Demo<br>";
        return str;
    }


}
